/*
* @Author: msi-pc
* @Date:   2021-04-09 15:59:48
* @Last Modified by:   msi-pc
* @Last Modified time: 2021-04-14 00:05:46
*/
// <!-- Custom-JavaScript-File-Links -->
// <!-- Supportive-JavaScript --> 
// <!-- Necessary-JS-File-For-Bootstrap --> 
// <!-- Banner-Slider-JavaScript -->
//  轮播图
console.log('i am man');


alert("我是一个警告框！");

$(function () {
  $("#slider").responsiveSlides({
    auto: true,
    nav: true,
    speed: 800,
    namespace: "callbacks",
    pager: true,
  });
});
//<!-- //Banner-Slider-JavaScript -->
//<!-- Owl-Carousel-JavaScript -->
//  轮播图
$(document).ready(function() {
  $("#owl-demo").owlCarousel ({
    items : 4,
    lazyLoad : true,
    autoPlay : true,
    pagination : false,
  });
});

//<!-- //Owl-Carousel-JavaScript -->
//<!-- Magnific-Popup-Display-JavaScript -->
//  图片放大
$(document).ready(function() {
  $('.popup-with-zoom-anim').magnificPopup({
    type: 'inline',
    fixedContentPos: false,
    fixedBgPos: true,
    overflowY: 'auto',
    closeBtnInside: true,
    preloader: false,
    midClick: true,
    removalDelay: 300,
    mainClass: 'my-mfp-zoom-in'
  });
});


//<!-- //Magnific-Popup-Display-JavaScript -->
//<!-- Progressive-Effects-Animation-JavaScript -->
//<!-- //Progressive-Effects-Animation-JavaScript -->
//<!-- Slide-To-Top JavaScript (No-Need-To-Change) -->
$(document).ready(function() {
  var defaults = {
    containerID: 'toTop', // fading element id
    containerHoverID: 'toTopHover', // fading element hover id
    scrollSpeed: 100,
    easingType: 'linear'
  };
  $().UItoTop({ easingType: 'easeOutQuart' });
});

//<!-- //Slide-To-Top JavaScript -->
//<!-- Smooth-Scrolling-JavaScript -->
jQuery(document).ready(function($) {
  $(".scroll, .navbar li a, .footer li a").click(
   function(event){
     $('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
   }
  );
});

